package com.service.impl;

import com.bean.Orders;
import com.bean.User;
import com.dao.OrdersMapper;
import com.service.OrdersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Samsara
* @description 针对表【orders】的数据库操作Service实现
* @createDate 2023-01-18 16:00:58
*/
@Service
public class OrdersServiceImpl implements OrdersService {
    @Resource
    private OrdersMapper ordersMapper;

    @Override
    public Integer insertBatch(List<Orders> ordersList) {
        return ordersMapper.insertBatch(ordersList);
    }

    @Override
    public Integer updateBatch(List<Orders> ordersList) {
        return ordersMapper.updateBatch(ordersList);
    }

    @Override
    public Integer deleteBatch(List<Orders> ordersList) {
        return ordersMapper.deleteBatch(ordersList);
    }

    @Override
    public List<Orders> selectOrdersList(List<Orders> ordersList,Integer start,Integer end) {
        return ordersMapper.selectOrdersList(ordersList,start,end);
    }

    @Override
    public List<Orders> selectOrdersListAndGoodsList(List<Orders> ordersList,Integer start,Integer end) {
        return ordersMapper.selectOrdersListAndGoodsList(ordersList,start,end);
    }

    @Override
    public List<Orders> selectOrdersListAndUserList(List<Orders> ordersList, Integer start, Integer end) {
        return ordersMapper.selectOrdersListAndUserList(ordersList,start,end);
    }
}
